﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MySQLApplication
{
    class Command
    {
        public string str_command;
        public string str_description;

        public string[] str_paramNames; // Example:  database, output file.  Used for writing syntax helper

        public virtual void onCall(string[] str_parameters)
        {

        } 
        public virtual void getSyntax()
        {
            Console.Write("Syntax for " + str_command + " command:  " + str_command);
            for (int i = 0; i < str_paramNames.Length; i++)
            {
                Console.Write(" <" + str_paramNames[i] + ">");
            }
            Console.WriteLine("\n");
            Console.WriteLine(str_description);
        }
    }
}
